<?php
namespace app\model;

use think\Model;

class Goods extends Model{
    public function getOne(){
        $find=Goods::find(1);
        return $find->toArray();
    }
    public function select(){
        $select = Goods::where('id','>',7)->select();
        return $select;
    }
}